<?php

namespace App\Models\User;

use App\Models\Article\ArticleInfo;
use App\Models\Common\CommonModel;
use Illuminate\Database\Eloquent\Factories\HasFactory;

class Favorite extends CommonModel
{
    use HasFactory;
    protected $table = 'favorite';

    public function getArticle() {
        return $this->hasOne(ArticleInfo::class,'id','article_id');
    }
}
